package 泛型.使用情景;

import org.junit.Test;

import java.util.List;

/**
 * @Projectname java_based
 * @Filename DAOTest
 * @Author an
 * @Data 2022/7/23 9:34
 * @Description TODO
 */
public class DAOTest {
    @Test
    public void test1(){
        CustomerDAO dao1 = new CustomerDAO();
        dao1.add(new Customer());
        List<Customer> list = dao1.getForList(10);


        StudentDAO dao2 = new StudentDAO();
        Student student = dao2.getIndex(1);
    }
}
